<template>
  <van-nav-bar class="my-navbar" title="">
    <template #\left>
      <div class="home-icon"></div>
    </template>
  </van-nav-bar>
</template>

<script>
import { NavBar, Toast } from 'vant';

export default {
  props: ['title'],
  components: {
    [NavBar.name]: NavBar,
    [Toast.name]: Toast,
  },
  methods: {
    onClickLeft() {
      this.$router.back();
    },

    onClickRight() {
      this.$router.replace('/home');
    },
  },
};
</script>

<style>
.home-icon {
  background: url('../assets/logo-company.png') no-repeat 0 0;
}
</style>
